<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<smart>include file ='../head.config.html'</smart>
<link href="../css/layout.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" media="all" href="../js/jscalendar/calendar-win2k-cold-1.css" title="win2k-cold-1" />
<script type="text/javascript" src="../js/jscalendar/calendar.js"></script>
<script type="text/javascript" src="../js/jscalendar/lang/calendar-en.js"></script>
<script type="text/javascript" src="../js/jscalendar/calendar-setup.js"></script>
<script type="text/javascript" src="../js/select_area_<smart> $versionarea </smart>.js"></script>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.metadata.js"></script>
<script language="JavaScript" type="text/javascript" src="..<smart>$templatepath</smart>/javascript/jquery.validate.js"></script>
<script language='javascript'>
// JavaScript Document
$(function(){
	$("#form_modi").validate({
		event: "keyup",
		errorClass: "error",
		rules: {
			rdoGender: {required:true},
			txtProvince: {required:true},
			txtAddress: {required:true},
			txtZip: {number: true,minValue:100000,maxValue:999999},
			txtMobilephone: {number: true,minValue:10000000000,maxValue:19999999999},
			txtPhone: {number: true},
			txtOtherphone: {number: true}
		},
		messages: {
			rdoGender: {required: "请选择性别!"},
			txtProvince: {required: "请选择城市!"},
			txtAddress: {required: "详细地址不能为空!"},
			txtZip: {number: "邮编应该为数字!",minValue:"邮编格式有误!",maxValue:"邮编格式有误!"},
			txtMobilephone: {number: "手机号码应该为数字!",minValue:"手机格式有误!",maxValue:"手机格式有误!"},
			txtPhone: {number: "电话号码应该为数字!"},
			txtOtherphone: {number: "电话号码应该为数字!"}
		}
	});

})
</script>
</head><body>
<div id="container760"> <smart>include file ='../header.html'</smart> <smart>include file ='own_menu.html'</smart>
  <div class="member_right"><smart>include file ='../InfoSelectorTarget.html'</smart>
    <form action="own_member.php?action=modifysave" method="post" name="form_modi" id="form_modi">
      <table class="table_white" style="margin-top:10px">
        <tr>
          <th><smart> $langMloginname </smart>:</th>
          <td><smart> $member_array.login_name </smart></td>
        </tr>
        <tr>
          <th><smart> $langMtruename </smart>:</th>
          <td><input name="txtTruename" type="text" id="txtTruename" value="<smart> $member_array.true_name </smart>" <smart> if $member_array.true_name != ""</smart> readonly <smart> /if </smart> />
            <label style="display:none" for="txtTruename" class="error" metaDone="true" generated="true"></label>
            <span class="fontred" style="margin-left:5px;">注:真实姓名一旦添加将不能再次修改。</span></td>
        </tr>
        <tr>
          <th><smart> $langMemail </smart>:</th>
          <td><smart> $member_array.email </smart></td>
        </tr>
        <tr>
          <th><span class="fontred">*</span><smart> $langMgender </smart>:</th>
          <td><smart> $gender </smart>
            <label style="display:none" for="rdoGender" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th><smart> $langMbirthday </smart>:</th>
          <td><input type="text" name="txtBirthday" id="f_date" readonly="readonly" value="<smart> $member_array.birthday </smart>" />
            <label style="display:none" for="f_date" class="error" metaDone="true" generated="true"></label>
            <script type="text/javascript">
    Calendar.setup({
        inputField     :    "f_date",
        ifFormat       :    "%Y-%m-%d",
        timeFormat     :    "24"
    });
	</script>
          </td>
        </tr>
        <tr>
          <th><span class="fontred">*</span><smart> $langMaddress </smart>:</th>
          <td>省:<select name="txtProvince" id="txtProvince" onchange="javascript:iniCity(document.getElementById('txtProvince'),document.getElementById('txtCity'));">
            </select>
            <label style="display:none" for="txtProvince" class="error" metaDone="true" generated="true"></label>
            市:<select name="txtCity" id="txtCity">
            </select>
            <label style="display:none" for="txtCity" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th><span class="fontred">*</span>详细地址:</th>
          <td><input name="txtAddress" type="text" id="txtAddress" value="<smart> $member_array.address </smart>" />
            <label style="display:none" for="txtAddress" class="error" metaDone="true" generated="true"></label><span class="font999" style="margin-left:5px;">(不需要重复填写省/市/区)</span>          </td>
        </tr>
        <tr>
          <th><smart> $langMzip </smart>:</th>
          <td><input name="txtZip" type="text" id="txtZip" size="10" value="<smart> $member_array.zip </smart>" />
            <label style="display:none" for="txtZip" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th><smart> $langMmobilephone </smart>:</th>
          <td><input name="txtMobilephone" type="text" id="txtMobilephone" value="<smart> $member_array.mobilephone </smart>" />
            <label style="display:none" for="txtMobilephone" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th><smart> $langMphone </smart>:</th>
          <td><input name="txtPhone" type="text" id="txtPhone" size="16" value="<smart> $member_array.phone </smart>" />
            <label style="display:none" for="txtPhone" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th><smart> $langMotherphone </smart>:</th>
          <td><input name="txtOtherphone" type="text" id="txtOtherphone" value="<smart> $member_array.otherphone </smart>" />
            <label style="display:none" for="txtOtherphone" class="error" metaDone="true" generated="true"></label></td>
        </tr>
        <tr>
          <th></th>
          <td><input type="submit" name="Submit" value="提交" /></td>
        </tr>
      </table>
    </form>
    <script language="javascript">
selectprovince = "<smart> $member_array.province </smart>";
selectcity = "<smart> $member_array.city </smart>";
//ifshowcode=1;
iniProvince(document.getElementById('txtProvince'));
iniCity(document.getElementById('txtProvince'),document.getElementById('txtCity'));
</script>
  </div>
  <smart>include file ='../footer.html'</smart> </div>
</body>
</html>
